package com.eaero.biz.tool;

import com.eaero.tool.CommonToolsService;
import com.eaero.tool.ThirdBorrowToolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author zb
 * @Date 2024/3/7 15:21
 */
@Service
public class BorrowToolsImpl implements BorrowToolsService{

    @Autowired
    private ThirdBorrowToolService thirdBorrowToolService;
    @Autowired
    private CommonToolsService commonToolsService;
    @Override
    public String borrowTools() {

        thirdBorrowToolService.checkBorrowOrder();

        thirdBorrowToolService.checkBorrowTools();

        thirdBorrowToolService.updateToolStatus();

        thirdBorrowToolService.saveBorrowRecord();

        commonToolsService.saveSystemLog();

        return "success";
    }
}
